#/bin/bash
echo ' -   -- ---             ------    ---
| | / /  \ \           / / | \    / |
| ,/ /    \ \    ^    / /  |  \  /  |
|          \ \  / \  / /   | \ \/ / |
| .\ \      \ \// \\/ /    |  \  /  |
| | \ \      \ /   \ /     | | -- | |
 -   -        -     -      ---    ---
                                            '
autoscan 
cp configure.scan configure.ac
sed -i '5d' configure.ac
sed -i '4a AC_INIT(kernel-wm/kwm, 0.0.0, https://gitee.com/kernel-wm/kwm/issues)' configure.ac
sed -i '$d' configure.ac
sed -i '19a AC_OUTPUT([Makefile])' configure.ac
sed -i '7a AC_CONFIG_SRCDIR([kwm.c])' configure.ac
sed -i '8a AM_INIT_AUTOMAKE' configure.ac
aclocal
autoconf
autoheader
echo 'AUTOMAKE_OPTIONS=foreign
bin_PROGRAMS=kwm
main_SOURCES=kwm.c' > Makefile.am
automake --add-missing
